﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Management.Automation;

namespace SSRSProvider
{
	/// <summary>
	/// PowerShell Drive
	/// </summary>
	internal class ReportingServicesDriveInfo : PSDriveInfo
	{
		public ReportService2005.ReportingService2005 RSProxy { get; set; }

		/// <summary>
		/// Construction
		/// </summary>
		/// <param name="inDriveInfo"></param>
		/// <param name="inParams"></param>
		public ReportingServicesDriveInfo( PSDriveInfo inDriveInfo, ReportingServicesDriveParameters inParams )
			: base( inDriveInfo )
		{
			RSProxy = new ReportService2005.ReportingService2005();
			RSProxy.Url = inParams.WebServiceUrl;
			RSProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
		}
	}
}
